package com.ben.multiple.aop.rest;

import com.ben.multiple.aop.annotation.TestAnnotation1;
import com.ben.multiple.aop.annotation.TestAnnotation2;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author BenJin Yin
 * @date 2020/8/26
 */
@TestAnnotation1("类级注解")
@RestController
@RequestMapping("/four")
@AllArgsConstructor
@Slf4j
public class FourRest {
    @GetMapping("/a")
    public void a() {
        log.info("FourRest  a");
    }

    @TestAnnotation2(value = "方法级注解")
    @GetMapping("/b")
    public void b() {
        log.info("FourRest  b");
    }
}
